package com.xmotor.test_JDK8Interface;

/**
 * @Description
 * @Author Dang Xianyue
 * @Date 2020-10-05 16:03
 * @Version 1.0
 */
public class JDK8InterfaceImpl1 implements JDK8Interface, JDK8Interface1 {

    // 由于JDK8Interface和JDK8Interface1中default方法一样,所以这里必须覆盖
    @Override
    public void defaultMethod() {
        System.out.println("接口实现类覆盖了接口中的default");
    }
}
